﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pipes.Queries.Model.Query
{
  public class UpdateStatement : IStatement
  {
    private IList<Operation> _assigns = new List<Operation>();
    private IList<Join> _joins = new List<Join>();

    public IList<Operation> Assignments
    {
      get
      {
        return _assigns;
      }
    }
    public IList<Join> Joins
    {
      get
      {
        return _joins;
      }
    }
    public ParseData MetaData { get; set; }
    public Identifier Source { get; set; }
    public IExpression Where { get; set; }

    public void Visit(Parser.IQueryVisitor visitor)
    {
      visitor.Visit(this);
    }
  }
}
